package org.davidtrevien.com.imput.omi.panels.center.planning.model;

public class TDay {

	protected int day;
	
	protected int month;
	
	protected int year;

	public TDay(int day, int month, int year) {
		this.day = day;
		this.month = month;
		this.year = year;
	}

	public int getDay() {
		return this.day;
	}

	public void setDay(int day) {
		this.day = day;
	}

	public int getMonth() {
		return this.month;
	}

	public void setMonth(int month) {
		this.month = month;
	}

	public int getYear() {
		return this.year;
	}

	public void setYear(int year) {
		this.year = year;
	}
	
	@Override
	public String toString() {
		return this.day+"/"+this.month+"/"+this.year;
	}
	
	@Override
	public boolean equals(Object obj) {
		if(obj.getClass().isInstance(this.getClass())) {
			TDay tday = (TDay)obj;
			return tday.day == this.day &&
				tday.month == this.month &&
				tday.year == this.year;
		}
		return false;
	}
}
